import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import "amfe-flexible"
Vue.config.productionTip = false

import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);


//3.1 导入moment
import moment from 'moment'
//3.2 设置语言
moment.locale('zh-cn')
//3.3 注册全局过滤器
//第一个参数：过滤器名字
//第二个参数：过滤器函数
Vue.filter('fromNow',function(value){
  return moment(value).fromNow()
})
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')